switch Statement (JScript 5.6)

Enables the execution of one or more statements when a specified expression's value matches a label.

switch (expression) {
      case label :
              statementlist
      case label :
              statementlist
   ...
      default :
              statementlist
} 

Expand imageArguments

Expand imageRemarks

Expand imageExample

Expand imageRequirements

Expand imageSee Also